<template>
  <div class="chushi">
    <router-view></router-view>
    <van-tabbar v-model="active">
      <van-tabbar-item to="/chushi/liebiao" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/chushi/Hear" icon="search">爆爆团</van-tabbar-item>
      <van-tabbar-item icon="friends-o">订单</van-tabbar-item>
      <van-tabbar-item icon="setting-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script setup>
import { ref } from "vue";
var active = ref(0)
</script>
<style scoped>
van-tabbar-item {
  z-index: 100000;
}

.dibu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: white;
  color: black;
  border-top: 1px solid black;
  padding: 20px;
}

/* 入场效果 */
.v-enter {
  /* 开始隐藏 */
  opacity: 0;
}

/* 入场动画执行状态 */
.v-enter-active {
  transition: all 1s;
}

/* 动画完成结束时效果 */
.v-enter-to {
  /* 动画完成显示 */
  opacity: 1;
}
</style>
